package com.plum.admin.modules.youeorder.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.plum.admin.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 子丶沫
 * @since 2021-08-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sn_order_price")
@ApiModel(value="SnOrderPrice对象", description="")
public class SnOrderPrice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "订单id")
    @TableField("orderId")
    private Long orderid;

    @ApiModelProperty(value = "计价规则id")
    @TableField("configId")
    private Long configid;

    @ApiModelProperty(value = "0-预估 1-实时")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "用户金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "司机金额")
    @TableField("driverAmount")
    private BigDecimal driveramount;

    @ApiModelProperty(value = "基础费")
    @TableField("basic")
    private String basic;

    @ApiModelProperty(value = "基础费补足")
    @TableField("basic_diff")
    private String basicDiff;

    @ApiModelProperty(value = "总里程")
    @TableField("distance")
    private String distance;

    @ApiModelProperty(value = "计费里程 单位米")
    @TableField("distance_count")
    private String distanceCount;

    @ApiModelProperty(value = "总用时")
    @TableField("duration")
    private String duration;

    @ApiModelProperty(value = "计费时间 单位秒")
    @TableField("duration_count")
    private String durationCount;

    @ApiModelProperty(value = "总超出公里数")
    @TableField("perhaps")
    private String perhaps;

    @ApiModelProperty(value = "里程费")
    @TableField("distance_price")
    private String distancePrice;

    @ApiModelProperty(value = "里程费计算明细")
    @TableField("distance_price_conf")
    private String distancePriceConf;

    @ApiModelProperty(value = "用时费")
    @TableField("duration_price")
    private String durationPrice;

    @ApiModelProperty(value = "用时费计算明细")
    @TableField("duration_price_conf")
    private String durationPriceConf;

    @ApiModelProperty(value = "远途费")
    @TableField("perhaps_price")
    private String perhapsPrice;

    @ApiModelProperty(value = "远途费计算明细")
    @TableField("perhaps_price_conf")
    private String perhapsPriceConf;

    @ApiModelProperty(value = "超出起步里程的时间")
    @TableField("out_startdis_time")
    private LocalDateTime outStartdisTime;

    @ApiModelProperty(value = "超出起步时长的时间")
    @TableField("out_startdur_time")
    private LocalDateTime outStartdurTime;

    @ApiModelProperty(value = "1=实时 2=预约")
    @TableField("model")
    private String model;

    @ApiModelProperty(value = "计费类型0=基础费 1=起步价")
    @TableField("priceType")
    private Integer pricetype;

    @ApiModelProperty(value = "起步里程")
    @TableField("start_dis")
    private String startDis;

    @ApiModelProperty(value = "起步时长")
    @TableField("start_dur")
    private String startDur;

    @ApiModelProperty(value = "起步价")
    @TableField("start_price")
    private String startPrice;

    @ApiModelProperty(value = "高速费")
    @TableField("high_fee")
    private String highFee;

    @ApiModelProperty(value = "路桥费")
    @TableField("road_bridge_fee")
    private String roadBridgeFee;

    @ApiModelProperty(value = "停车费")
    @TableField("park_fee")
    private String parkFee;

    @ApiModelProperty(value = "其他费用")
    @TableField("orther_fee")
    private String ortherFee;

    @ApiModelProperty(value = "等待费: 时长-费用")
    @TableField("wait_fee")
    private String waitFee;

    @ApiModelProperty(value = "运力类型")
    @TableField("ride_type")
    private String rideType;

    @ApiModelProperty(value = "优惠卷id")
    @TableField("optimalFeeId")
    private Integer optimalfeeid;

    @ApiModelProperty(value = "优惠金额")
    @TableField("yhMoney")
    private String yhmoney;

    @TableField("from_addr")
    private String fromAddr;

    @TableField("to_addr")
    private String toAddr;

    @TableField("from_location")
    private String fromLocation;

    @TableField("to_location")
    private String toLocation;

    @TableField("cityCode")
    private String citycode;

    @TableField("areaCode")
    private String areacode;

    @TableField("orderTime")
    private String ordertime;

    @TableField("driver_rate")
    private Float driverRate;


}
